package cn.zpcnet.zstring.utils.oprate;


import java.util.Arrays;
import java.util.List;

/**
 * @author zpc
 * @version 1.0
 */
public class StringOperateUtil implements StringOperate {
    @Override
    public List<String> splitBy(String str) {
        return Arrays.asList(str.split(","));
    }

    @Override
    public List<String> splitBy(String str, String delimiter) {
        return Arrays.asList(str.split(delimiter));
    }

    @Override
    public String splice(String str, int start, int end) {
        str = str.trim();
        return str.substring(start,end);
    }
}
